import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {CooperationAppComponent} from './cooperation-app/cooperation-app.component';
import {CooperationCompanyComponent} from './cooperation-company/cooperation-company.component';
import {CooperationDataComponent} from './cooperation-data/cooperation-data.component';
import {CooperationCooperationComponent} from './cooperation-cooperation/cooperation-cooperation.component';
import { AdvertisingAgencyUserComponent } from './advertising-agency-manage/advertising-agency-user/advertising-agency-user.component';
import { AdvertisingAgencyApplyComponent } from './advertising-agency-manage/advertising-agency-apply/advertising-agency-apply.component';
import { CooperationDeveloperListComponent } from './unionPay-manage/cooperation-developer-list/cooperation-developer-list.component';
import { CooperationDeveloperInfosComponent } from './unionPay-manage/cooperation-developer-infos/cooperation-developer-infos.component';
import { CooperationMerchantListComponent } from './unionPay-manage/cooperation-merchant-list/cooperation-merchant-list.component';
import { CooperationUnionpayStatisticsComponent } from './unionPay-manage/cooperation-unionpay-statistics/cooperation-unionpay-statistics.component';
import { CooperationMerchantDetailsComponent } from './unionPay-manage/cooperation-merchant-details/cooperation-merchant-details.component';

const routes: Routes = [
  {
    path: 'cooperationApp',
    component: CooperationAppComponent,
    data: {breadcrumb: '应用管理'}
  },
  {
    path: 'cooperationCompany',
    component: CooperationCompanyComponent,
    data: {breadcrumb: '企业管理'}
  },
  {
    path: 'cooperationData',
    component: CooperationDataComponent,
    data: {breadcrumb: '数据管理'}
  },
  {
    path: 'cooperationCooperation',
    component: CooperationCooperationComponent,
    data: {breadcrumb: '合作伙伴管理'}
  },
  {
    path: 'advertisingAgencyUserList',
    component: AdvertisingAgencyUserComponent,
    data: {breadcrumb: '用户列表'}
  },
  {
    path: 'advertisingAgencyApplyList',
    component: AdvertisingAgencyApplyComponent,
    data: {breadcrumb: '代理申请列表'}
  },
  { path: 'cooperation-developer-list', component: CooperationDeveloperListComponent, data: {breadcrumb: '拓展员管理'} },
  { path: 'cooperation-developer-infos', component: CooperationDeveloperInfosComponent, data: {breadcrumb: '拓展员信息'} },
  { path: 'cooperation-merchant-list', component: CooperationMerchantListComponent, data: {breadcrumb: '商户管理'} },
  { path: 'cooperation-merchant-details', component: CooperationMerchantDetailsComponent, data: {breadcrumb: '商户信息'} },
  { path: 'cooperation-unionpay-statistics', component: CooperationUnionpayStatisticsComponent, data: {breadcrumb: '流水统计'} }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class CooperationRoutingModule {
}
